﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="InsertBusTYpeControl.ascx.cs" Inherits="Control_InsertBusTYpeControl" %>
<style type="text/css">
    .style1
    {
        height: 30px;
    }
</style>
<table>
    <tr>
        <td><asp:Label ID="Label1" runat="server" Text="Type Name: "></asp:Label></td>
        <td><asp:TextBox ID="txtName" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="txtName" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="txtName" ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[a-zA-Z0-9/s]{1,}$">Type Name do not enter character special</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td><asp:Label ID="Label2" runat="server" Text="Total Seats: "></asp:Label></td>
        <td><asp:TextBox ID="txtTotalSeats" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="txtTotalSeats" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                ControlToValidate="txtTotalSeats" ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[1-9][0-9]*$">Total Seats must be a number</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td><asp:Label ID="Label3" runat="server" Text="Price: "></asp:Label></td>
        <td><asp:TextBox ID="txtPrice" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="txtPrice" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                ControlToValidate="txtPrice" ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[1-9][0-9]*$"> Price must be a number</asp:RegularExpressionValidator>
        </td>
    </tr>
     <tr>
        <td class="style1"><asp:Label ID="Label10" runat="server" Text="Description: "></asp:Label></td>
        <td class="style1"><asp:TextBox ID="txtDescription" runat="server" Width="177px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="txtDescription" ErrorMessage="RequiredFieldValidator" 
                Display="Dynamic">Please Fill Data</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" 
                ControlToValidate="txtDescription" ErrorMessage="RegularExpressionValidator" 
                ValidationExpression="^[a-zA-Z0-9/s]{1,}$">Description do not enter character special</asp:RegularExpressionValidator>
         </td>
    </tr>
    <tr>
        <td><asp:Button ID="btnAdd" runat="server"
        Text="Add" onclick="btnAdd_Click" /></td>
        <td><asp:Button ID="btnreset" runat="server" 
        Text="Reset" onclick="btnreset_Click"  /></td>
    </tr>
</table>